<!DOCTYPE html>
<html>

<head>
	<title>Online Store Register</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>
	<header>
		<h2>Online Store</h2>
	</header>
	<main>
		<div class="content narrowbox">
			<h2>Customer Register</h2>
			<hr>
			<form action="register.php" method="POST" class="logNregForm">
				<label><?php
				include "connectStoreDB.php";
				$sql = "SELECT * FROM customers";
				$result = mysqli_query($conn, $sql);
				$usr = mysqli_num_rows($result) + 10001;
				echo "You are now registering as customer id $usr";
				mysqli_close($conn);
				?></label>
				<label for="pwd">Password:</label>
				<input type="password" id="pwd" name="pwd" placeholder="Enter a 6-digit password" required>
				<label for="cpwd">Confirm Password:</label>
				<input type="password" id="cpwd" name="cpwd" placeholder="Enter your password again" required>
				<button type="submit">Register</button>
				<p>Already have an account? Go to <a href="LoginPage.html">Login</a></p>
			</form>
		</div>
	</main>
</body>

</html>